import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.api.customization.huangwm.dao.SW003.AssetInfoOperationDao;
import com.api.customization.huangwm.formmode.lims.UpdateLimsProcessApi;
import com.customization.huangwm.utils.DBTools;
import com.customization.huangwm.utils.HttpRequest;
import org.apache.commons.lang.StringEscapeUtils;
import weaver.conn.RecordSet;
import weaver.formmode.customjavacode.modeexpand.huangwm.SW003.PushToNC_bsinvman;
import weaver.formmode.customjavacode.modeexpand.huangwm.SW003.RegisterAssetsToRecords;
import weaver.general.GCONST;
import weaver.general.Util;
import weaver.hrm.User;
import weaver.soa.workflow.request.RequestInfo;
import weaver.system.SysRemindWorkflow;

import java.io.File;
import java.lang.reflect.Field;
import java.util.*;

/**
 * @Author Huangwm
 * @Date 2022-05-06
 * @Version 1.0
 * @Description TODO
 **/
public class main {
    public static void main(String[] args) throws Exception {
        String rootPath = "E:\\WEAVER9\\ecology\\";
        GCONST.setRootPath(rootPath);
        GCONST.setServerName("ecology");

        System.err.println("09:01:53".substring(0,5));
        Map<String,Object> detail = new HashMap<>();
        detail.put("applicationQuantity",1);
        detail.put("SerialNumber",1);
        detail.put("depOfAsset",1);
        detail.put("depManager",1);//管理部門負責人
        detail.put("oldStatus",1);
        detail.put("reason","采購退貨");
        detail.put("amount",1);
        detail.put("mainAssetCode",1);
        detail.put("location",1);
        detail.put("locationDesc",1);
        System.err.println(detail.containsValue("采購退貨"));
        System.err.println(detail.size());
    }

    public static String replaceStr(String str){
        String s =  str.replace("\"","&quot;").replace("\'","&apos;")//.replace("&","&amp;")
                .replace("<","&lt;").replace(">","&gt;");
        return s;
    }
}
